package com.medical.server.doorcheck.service.impl;

import com.laozj.common.utils.PageUtils;
import com.laozj.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.medical.server.doorcheck.dao.PreWorkingDao;
import com.medical.server.doorcheck.entity.PreWorkingEntity;
import com.medical.server.doorcheck.service.PreWorkingService;


@Service("preWorkingService")
public class PreWorkingServiceImpl extends ServiceImpl<PreWorkingDao, PreWorkingEntity> implements PreWorkingService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<PreWorkingEntity> page = this.page(
                new Query<PreWorkingEntity>().getPage(params),
                new QueryWrapper<PreWorkingEntity>()
        );

        return new PageUtils(page);
    }

}